﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020001F1 RID: 497
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class ChargerInfo : IMessage<ChargerInfo>, IMessage, IEquatable<ChargerInfo>, IDeepCloneable<ChargerInfo>, IBufferMessage
	{
		// Token: 0x1700068A RID: 1674
		// (get) Token: 0x06001675 RID: 5749 RVA: 0x0003FD4C File Offset: 0x0003DF4C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<ChargerInfo> Parser
		{
			get
			{
				return ChargerInfo._parser;
			}
		}

		// Token: 0x1700068B RID: 1675
		// (get) Token: 0x06001676 RID: 5750 RVA: 0x0003FD53 File Offset: 0x0003DF53
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return ChargerInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700068C RID: 1676
		// (get) Token: 0x06001677 RID: 5751 RVA: 0x0003FD65 File Offset: 0x0003DF65
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return ChargerInfo.Descriptor;
			}
		}

		// Token: 0x06001678 RID: 5752 RVA: 0x0003FD6C File Offset: 0x0003DF6C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChargerInfo()
		{
		}

		// Token: 0x06001679 RID: 5753 RVA: 0x0003FD74 File Offset: 0x0003DF74
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChargerInfo(ChargerInfo other) : this()
		{
			this.groupId_ = other.groupId_;
			this.bMOBDFECHFF_ = other.bMOBDFECHFF_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600167A RID: 5754 RVA: 0x0003FDA5 File Offset: 0x0003DFA5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChargerInfo Clone()
		{
			return new ChargerInfo(this);
		}

		// Token: 0x1700068D RID: 1677
		// (get) Token: 0x0600167B RID: 5755 RVA: 0x0003FDAD File Offset: 0x0003DFAD
		// (set) Token: 0x0600167C RID: 5756 RVA: 0x0003FDB5 File Offset: 0x0003DFB5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint GroupId
		{
			get
			{
				return this.groupId_;
			}
			set
			{
				this.groupId_ = value;
			}
		}

		// Token: 0x1700068E RID: 1678
		// (get) Token: 0x0600167D RID: 5757 RVA: 0x0003FDBE File Offset: 0x0003DFBE
		// (set) Token: 0x0600167E RID: 5758 RVA: 0x0003FDC6 File Offset: 0x0003DFC6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint BMOBDFECHFF
		{
			get
			{
				return this.bMOBDFECHFF_;
			}
			set
			{
				this.bMOBDFECHFF_ = value;
			}
		}

		// Token: 0x0600167F RID: 5759 RVA: 0x0003FDCF File Offset: 0x0003DFCF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as ChargerInfo);
		}

		// Token: 0x06001680 RID: 5760 RVA: 0x0003FDDD File Offset: 0x0003DFDD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(ChargerInfo other)
		{
			return other != null && (other == this || (this.GroupId == other.GroupId && this.BMOBDFECHFF == other.BMOBDFECHFF && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06001681 RID: 5761 RVA: 0x0003FE1C File Offset: 0x0003E01C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.GroupId != 0U)
			{
				num ^= this.GroupId.GetHashCode();
			}
			if (this.BMOBDFECHFF != 0U)
			{
				num ^= this.BMOBDFECHFF.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06001682 RID: 5762 RVA: 0x0003FE74 File Offset: 0x0003E074
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06001683 RID: 5763 RVA: 0x0003FE7C File Offset: 0x0003E07C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06001684 RID: 5764 RVA: 0x0003FE88 File Offset: 0x0003E088
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.BMOBDFECHFF != 0U)
			{
				output.WriteRawTag(40);
				output.WriteUInt32(this.BMOBDFECHFF);
			}
			if (this.GroupId != 0U)
			{
				output.WriteRawTag(48);
				output.WriteUInt32(this.GroupId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06001685 RID: 5765 RVA: 0x0003FEE4 File Offset: 0x0003E0E4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.GroupId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.GroupId);
			}
			if (this.BMOBDFECHFF != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.BMOBDFECHFF);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06001686 RID: 5766 RVA: 0x0003FF3C File Offset: 0x0003E13C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(ChargerInfo other)
		{
			if (other == null)
			{
				return;
			}
			if (other.GroupId != 0U)
			{
				this.GroupId = other.GroupId;
			}
			if (other.BMOBDFECHFF != 0U)
			{
				this.BMOBDFECHFF = other.BMOBDFECHFF;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06001687 RID: 5767 RVA: 0x0003FF8C File Offset: 0x0003E18C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06001688 RID: 5768 RVA: 0x0003FF98 File Offset: 0x0003E198
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 40U)
				{
					if (num != 48U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.GroupId = input.ReadUInt32();
					}
				}
				else
				{
					this.BMOBDFECHFF = input.ReadUInt32();
				}
			}
		}

		// Token: 0x0400093E RID: 2366
		private static readonly MessageParser<ChargerInfo> _parser = new MessageParser<ChargerInfo>(() => new ChargerInfo());

		// Token: 0x0400093F RID: 2367
		private UnknownFieldSet _unknownFields;

		// Token: 0x04000940 RID: 2368
		public const int GroupIdFieldNumber = 6;

		// Token: 0x04000941 RID: 2369
		private uint groupId_;

		// Token: 0x04000942 RID: 2370
		public const int BMOBDFECHFFFieldNumber = 5;

		// Token: 0x04000943 RID: 2371
		private uint bMOBDFECHFF_;
	}
}
